package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2024-01-25
 */
public interface ChannelPromotionMerchantConfigRepository {

    /**
     * 保存
     * @param channelPromotionMerchantConfig channelPromotionMerchantConfig
     * @return  boolean
     */
    boolean saveChannelPromotionMerchantConfig(ChannelPromotionMerchantConfig channelPromotionMerchantConfig);

    /**
     * 更新
     * @param channelPromotionMerchantConfig channelPromotionMerchantConfig
     * @return  boolean
     */
    boolean updateChannelPromotionMerchantConfig(ChannelPromotionMerchantConfig channelPromotionMerchantConfig);

    /**
     * 根据渠道推广code查询渠道推广商户配置
     * @param channelPromotionCode channelPromotionCode
     * @return ChannelPromotionMerchantConfig
     */
    ChannelPromotionMerchantConfig getChannelPromotionMerchantConfigByChannelPromotionCode(String channelPromotionCode);
}
